package cn.liontalk.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author ZhouZhe
 * @version 1.0
 * @description
 * @date 2019-04-16 21:41
 **/
@Data
@Entity
@Table(name = "order_detail")
public class OrderDetail {


    @Id
    private String detailId;

    private String orderId;

    private String productId;

    /**
     * '商品名称'
     */
    private String productName;


    /**
     * '当前价格,单位分'
     */
    private BigDecimal productPrice;

    /**
     * '数量'
     */
    private int productQuantity;

    /**
     * '小图'
     */
    private String productIcon;


    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;
}
